<?php
$sServer	= "127.0.0.1: 3306";
$sUsername = "xuzhiqiang";
$sPassword = "123456";

$dbLink = @mysql_connect ($sServer, $sUsername, $sPassword);

if ($dbLink == null)
{
echo "输出数据库失败";
exit ();
}
echo "成功打开{$sServer}上的数据库";
@mysql_close ($dbLink);
?>

